import java.util.Scanner;

public class Score {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        
        int java =0;
        int html =0;
        int sql =0;


        int diff =0;
        double avg =0.0;

        System.out.print("请输入java成绩:");
        java =input.nextInt();
        System.out.print("请输入网页成绩：");
        html =input.nextInt();
        System.out.print("请输入数据库成绩:");
        sql = input.nextInt();

        System.out.println("-------------------------");

        System.out.println("JAVA    HTML     SQL");
        System.out.println(java+"    "+html+"    "+sql);

        System.out.println("------------------------");

        diff = java -sql;
        System.out.println("java 课程和数据库的成绩差： "+diff);

        avg = (java + html + sql) / 3;
        System.out.println("3门课程的平均分是:"+ avg);

        input.close();
    }

}
